<template>
  <div class="notics_box">
    <span @click="toHome">首页</span>
    <span>&nbsp;—&nbsp;</span>
    <span>{{name || '公告'}}</span>
    <div class="tishi">
    </div>
  </div>
</template>

<script>
export default {
  name: 'NoticNotics',
  props: {
    name: String
  },
  methods: {
    toHome () {
      this.$router.push('/home')
    }
  }
}
</script>

<style lang="stylus" scoped>
  .notics_box{
    width: 990px
    content: ''
    clear: both
    display: table
    height: auto
    position: absolute
    right: 0
    top: 50px
    span{
      cursor: default
      display: inline-block
      position: relative
      left: 0
      bottom: 0
      font-size: .4rem
      color: rgb(15,153,213)
    }
    span:first-child:hover{
      cursor: pointer
      color: rgb(15,70,213)
    }
    span:nth-child(3){
      color: rgb(0,0,0)
    }
    .tishi{
      cursor: default
      position: relative
      left: 0
      width: 100%
      height: 5px
      border-bottom: 3px solid rgb(210,210,210)
    }
  }
</style>
